// finished

#include <iostream>
#include <vector>
#define int long long
using namespace std;

vector<int> cnt(100005);
vector<int> idxs;

signed main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int n;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        int t;
        cin >> t;
        cnt[t]++;
    }
    for (int i = 1; i < cnt.size(); i++)
    {
        cnt[i - 1] = max(0ll, cnt[i - 1] - cnt[i]);
        cnt[i] += cnt[i - 1];
    }
    cout << cnt[cnt.size() - 1] << endl;
    return 0;
}